//
//  CCUIKeyboard.h
//  CCFC_IPHONE
//
//  Created by  xuchen(陈旭)， xichen(陈曦)， qq：511272827 on 10-11-18.
//  Copyright 2010 cc_team. All rights reserved.
//

#ifndef	CC_UI_KEYBOARD
#define	CC_UI_KEYBOARD

#include "CCAll.h"

#ifdef OBJC_MACRO

// 设置焦点
#define	SET_FOCUS(view)	\
		{		\
			if([view canBecomeFirstResponder])	\
			{			\
				[view becomeFirstResponder];	\
			}	\
		}

// 取消焦点
#define	LOSE_FOCUS(view)	\
		{		\
			if([view canResignFirstResponder])	\
			{			\
				[view resignFirstResponder];	\
			}	\
		}

#ifdef	_cplusplus
extern "C" {
#endif

	// 虚拟键盘是否可见 : not availble
	BOOL isKeyboardVisible();
	
#ifdef	_cplusplus
}
#endif
		
@interface CCUIKeyboard : NSObject 
{

}

@end

#endif	//OBJC_MACRO
#endif	//CC_UI_KEYBOARD
